package com.dao.mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.domain.Bls;
import com.domain.Cj;
import com.domain.Cs;
import com.domain.Hyzk;
import com.domain.Jb;
import com.domain.Jzlx;
import com.domain.Pomr;
import com.domain.Rllx;
import com.domain.Rqlx;
import com.domain.Ss;
import com.domain.Sx;
import com.domain.UserBls;
import com.domain.UserCj;
import com.domain.UserCs;
import com.domain.UserRllx;
import com.domain.UserYs;
import com.domain.UserYwgms;
import com.domain.Whcd;
import com.domain.Ws;
import com.domain.Xx;
import com.domain.Ys;
import com.domain.Ywgms;
import com.domain.Zjlx;
import com.domain.Zw;

public interface PomrDao {
	public List<Pomr> getPomrs(Map params);
	public int getCount(Map params);
	public Pomr getPomr(int uid);
	public Map<String,Object> getPomr2(int uid);
	public Pomr  getPomrByJkdah(int jkdah);
	public int getUidByJkdah(int jkdah);
	public Map<String,Object> getUidByZjh(String zjh);
	public Map<String,Object> getPomrInfo(int uid);
	
	public List<Map<String,Object>> getYwgms(int uid);
	public List<Map<String,Object>> getBls(int uid);
	public List<Map<String,Object>> getCj(int uid);
	public List<Map<String,Object>> getJb(int uid);
	public List<Map<String,Object>> getSs(int uid);
	public List<Map<String,Object>> getWs(int uid);
	public List<Map<String,Object>> getSx(int uid);
	public List<Map<String,Object>> getRllx(int uid);
	public List<Map<String,Object>> getYs(int uid);
	public List<Map<String,Object>> getCs(int uid);
	
	//各种代码
	public List<Ywgms> getDmYwgms();
	public List<Bls> getDmBls();
	public List<Cj> getDmCj();
	public List<Jb> getDmJb();
	public List<Ss> getDmSs();
	public List<Ws> getDmWs();
	public List<Sx> getDmSx();
	public List<Rllx> getDmRllx();
	public List<Ys> getDmYs();
	public List<Cs> getDmCs();
	
	public List<Zjlx> getZjlx();
	public List<Hyzk> getHyzk();
	public List<Zw> getZw();
	public List<Whcd> getWhcd();
	public List<Xx> getXx();
	public List<Rqlx> getRqlx();
	public List<Jzlx> getJzlx();
	
	//修改
	public void updatePomr(Pomr pomr);
	public int getYwgmsIdByMc(String mc);
	public void deleteUserYwgms(int uid);
	public int addUserYwgms(UserYwgms userywgms);
	
	public int getBlsIdByMc(String mc);
	public void deleteUserBls(int uid);
	public int addUserBls(UserBls userbls);

	public int getCjIdByMc(String mc);
	public void deleteUserCj(int uid);
	public int addUserCj(UserCj usercj);
	
	public int getRllxIdByMc(String mc);
	public void deleteUserRllx(int uid);
	public int addUserRllx(UserRllx userrllx);
	
	public int getCsIdByMc(String mc);
	public void deleteUserCs(int uid);
	public int addUserCs(UserCs usercs);

	public int getYsIdByMc(String mc);
	public void deleteUserYs(int uid);
	public int addUserYs(UserYs userYs);
	
	/*修改密码*/
	public int getOldPwd(int ucode,String oldpwd);
	public void updatePwdByUcode(int ucode, String newpwd);
	
	//打印
	public ArrayList<HashMap<String,Object>> getBasePomrs(@Param("ocode") String ocode);
	
	/*导入*/
	public void addPorm(Pomr pomr);
	
	//添加有时间的关联表
	public void addJb(Jb jb);
	public void addSs(Ss ss);
	public void addWs(Ws ws);
	public void addSx(Sx Sx);
	public Map<String,Object> getHyzkidByMc(Object mc);
	
	//注册
	public int getCountOfZjh(String zjh,String xm);
	public Map<String,Object> getLastNum();
	public Map<String,Object> getUidByUcode(int ucode);
	
}
